package io.renren.modules.zhaopin.service.impl;

import io.renren.modules.zhaopin.dao.BackgroundCustomInfoDao;
import io.renren.modules.zhaopin.entity.BackgroundCustomInfoEntity;
import io.renren.modules.zhaopin.service.BackgroundCustomInfoService;
import org.springframework.stereotype.Service;
import java.util.Map;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import io.renren.common.utils.PageUtils;
import io.renren.common.utils.Query;

@Service("backgroundCustomInfoService")
public class BackgroundCustomInfoServiceImpl extends ServiceImpl<BackgroundCustomInfoDao, BackgroundCustomInfoEntity> implements BackgroundCustomInfoService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<BackgroundCustomInfoEntity> page = this.page(
                new Query<BackgroundCustomInfoEntity>().getPage(params),
                new QueryWrapper<BackgroundCustomInfoEntity>()
        );

        return new PageUtils(page);
    }

}